home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / Prograph Classic 2.6.1 / Prograph Reference Manual / Prograph Reference 5-7 / Prograph Reference 5-7.rsrc / TEXT_157.txt < prev    next >
Encoding:
Text File  |  1995-10-25  |  1.7 KB  |  67 lines

  1.  
  2.  Data
  3.  
  4.  
  5. _________________________________________________
  6.  
  7.                                              choose     *265*
  8.  
  9.  
  10.  
  11. Input types: boolean; <any>; <any>
  12.  
  13. Output types: <any>
  14.  
  15. Description:     Choice is TrueChoice if Criterion is TRUE, and FalseChoice otherwise.
  16.  
  17. See also:  switch
  18.  
  19.  
  20. _________________________________________________
  21.  
  22.                      copy      *265*
  23.  
  24.  
  25.  
  26. Input types: <any>
  27.  
  28. Output types: <any>
  29.  
  30. Description:     ItemCopy is a copy of Item. This is a ‚Äúdeep‚Äù copy:  see the‚ÄúPrograph Data Types‚Äù section of appendix II, ‚ÄúC Code Usage‚Äù, for a discussion of data types and memory management.
  31.  
  32.  Use of the copy primitve is the prescribed method of copy System Class instances if you want to store them using the save, or to-bytes primitives or any of the datfile primitives.  The copy primitive clears all active? flags of these instances.
  33.  
  34.  
  35. _________________________________________________
  36.  
  37.                                           switch     *265*
  38.  
  39.  
  40.  
  41. Input names: K; Default; Data1; [Data2; ‚Ķ ; DataN]
  42.  
  43. Input types: integer; <any>; <any>; [<any>; ‚Ķ ; <any>]
  44.  
  45. Output names: Result
  46.  
  47. Output types: <any>
  48.  
  49. Description:     If K is between 1 and N inclusive, Result is the Kth element of (Data1... DataN); otherwise Result is Default.
  50.  
  51. See also:  choose.i).primitive(s):categories:Data;
  52.  
  53.  
  54. _________________________________________________
  55.  
  56.                                              shallow-copy    *266*
  57.  
  58.  
  59. Input type:     any
  60.  
  61. Output type: any
  62.  
  63. Description:     Copies the given Item into ItemCopy. If Item is a complex object (instance or list), the referenced objects (both complex and simple) in the attributes or list slots are not copied, but their use counts are incremented.
  64.  
  65. See also:    copy
  66.  
  67.